#include <sys/syscall.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>

#define __NR_logcalls	350

int main(int argc, char *argv[]){
if(argc != 4){
                printf("usage: logcalls logfile prog args\n");
		exit(0);
}

if((long)syscall(__NR_logcalls, argv[1]) < 0){
                printf("logcalls failed\n");
}

execv(argv[2], &argv[2]);
exit(0);


//return 0;
}
